package com.fzh.pojo.entity;

public class Product {
	
	private Integer id;
	/**
	 * 链接商品分类表的外键
	 */
	private Integer f_ptid;
	/**
	 * 商品的名称
	 */
	private String name;
	/**
	 * 商品的旧价格
	 */
	private Double oldPrice;
	/**
	 * 商品的现价
	 */
	private Double newPrice;
	/**
	 * 商品的品牌
	 */
	private String plate;
	/**
	 * 商品尺寸大小
	 */
	private String size;
	/**
	 * 
	 */
	private String cate;
	/**
	 * 商品的生产厂家
	 */
	private String factory;
	/**
	 * 商品的生产地区
	 */
	private String area;
	/**
	 * 商品的描述
	 */
	private String description;
	
	/**
	 * 商品的主图
	 */
	private String imgMain;
	/**
	 * 是否下架（0没下架，1已经下架了）
	 */
	private Integer isSoldOut;
	/**
	 * 是否允许删除（0不允许，1允许，默认值是1，只要下过订单就改成0）
	 */
	private Integer isDel;
	/**
	 * 权重(根据数字就行优先的展示)
	 */
	private Integer weight;
	/**
	 * 是否推荐到首页（默认值是0，0不推荐，1代表推荐)
	 */
	private Integer isRecommendMain;
	/**
	 * 是否显示为滚动图（0不显示，1显示）
	 */
	private Integer isRollImg;
	
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getF_ptid() {
		return f_ptid;
	}
	public void setF_ptid(Integer f_ptid) {
		this.f_ptid = f_ptid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Double getOldPrice() {
		return oldPrice;
	}
	public void setOldPrice(Double oldPrice) {
		this.oldPrice = oldPrice;
	}
	public Double getNewPrice() {
		return newPrice;
	}
	public void setNewPrice(Double newPrice) {
		this.newPrice = newPrice;
	}
	public String getPlate() {
		return plate;
	}
	public void setPlate(String plate) {
		this.plate = plate;
	}
	public String getSize() {
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	public String getCate() {
		return cate;
	}
	public void setCate(String cate) {
		this.cate = cate;
	}
	public String getFactory() {
		return factory;
	}
	public void setFactory(String factory) {
		this.factory = factory;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getImgMain() {
		return imgMain;
	}
	public void setImgMain(String imgMain) {
		this.imgMain = imgMain;
	}
	public Integer getIsSoldOut() {
		return isSoldOut;
	}
	public void setIsSoldOut(Integer isSoldOut) {
		this.isSoldOut = isSoldOut;
	}
	public Integer getIsDel() {
		return isDel;
	}
	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}
	public Integer getWeight() {
		return weight;
	}
	public void setWeight(Integer weight) {
		this.weight = weight;
	}
	public Integer getIsRecommendMain() {
		return isRecommendMain;
	}
	public void setIsRecommendMain(Integer isRecommendMain) {
		this.isRecommendMain = isRecommendMain;
	}
	public Integer getIsRollImg() {
		return isRollImg;
	}
	public void setIsRollImg(Integer isRollImg) {
		this.isRollImg = isRollImg;
	}
	public Product(Integer id, Integer f_ptid, String name, Double oldPrice, Double newPrice, String plate, String size,
			String cate, String factory, String area, String description, String imgMain, Integer isSoldOut,
			Integer isDel, Integer weight, Integer isRecommendMain, Integer isRollImg) {
		super();
		this.id = id;
		this.f_ptid = f_ptid;
		this.name = name;
		this.oldPrice = oldPrice;
		this.newPrice = newPrice;
		this.plate = plate;
		this.size = size;
		this.cate = cate;
		this.factory = factory;
		this.area = area;
		this.description = description;
		this.imgMain = imgMain;
		this.isSoldOut = isSoldOut;
		this.isDel = isDel;
		this.weight = weight;
		this.isRecommendMain = isRecommendMain;
		this.isRollImg = isRollImg;
	}
	public Product() {
		super();
	}
	@Override
	public String toString() {
		return "product [id=" + id + ", f_ptid=" + f_ptid + ", name=" + name + ", oldPrice=" + oldPrice + ", newPrice="
				+ newPrice + ", plate=" + plate + ", size=" + size + ", cate=" + cate + ", factory=" + factory
				+ ", area=" + area + ", description=" + description + ", imgMain=" + imgMain + ", isSoldOut="
				+ isSoldOut + ", isDel=" + isDel + ", weight=" + weight + ", isRecommendMain=" + isRecommendMain
				+ ", isRollImg=" + isRollImg + "]";
	}
	
	
	
}
